public class Test {
    public static void main(String[] args) {
        Object object = true? new Integer(5):new Double(2.0);
        System.out.println(object);
    }
}